package com.ys.web.user.friends.mapper;

import com.ys.base.BaseMapper;
import com.ys.web.user.friends.po.BaseUserApplyPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName UserApplyMapper
 * @Description UserApplyMapper
 * @Author qxj
 * @Date 2021/5/10 21:25
 * @Version 1.0
 */
@Mapper
public interface UserApplyMapper extends BaseMapper<BaseUserApplyPO> {

    /**
     * @title getApplyList
     * @description 获取好友申请集合
     * @author qxj * @param uid
     * @updateTime 2021/5/10 22:44
     * @return: java.util.List<com.ys.web.user.friends.po.BaseUserApplyPO>
     */
    List<BaseUserApplyPO> getApplyList(String uid);

    /**
     * @param fromId
     * @param uid
     * @title selectObj
     * @description
     * @author quxinjun
     * @updateTime 2021/7/1 21:43
     * @return: com.ys.web.user.friends.po.BaseUserApplyPO
     */
    BaseUserApplyPO selectObj(@Param("applyId") String fromId, @Param("acceptId") String uid);
}
